package net.starwifi.duobao.service;

import net.starwifi.duobao.entity.TradeRecord;
import net.starwifi.duobao.mvc.PageView;

import java.math.BigDecimal;

/**
 * Created by Administrator on 2015/9/29.
 */
public interface TradeRecordService extends BaseService<TradeRecord, Long> {


    /* 账户退款*/
    void refunds(Long memberId, BigDecimal fee, String remarks, String outSn);

    /* 账户充值*/
    void recharge(Long memberId, BigDecimal fee, String remarks, String outSn);

    /* 购物扣款*/
    boolean buy(Long memberId, BigDecimal fee, String remarks, String outSn);

    /**
     * 红包充值
     */
    void hb(Long memberId, BigDecimal fee, String remarks, String outSn);

    /**
     * 管理员充值赠送
     */
    void adminRecharge(Long memberId, BigDecimal fee, String remarks, String outSn);

    /**
     * 订单号查询验证*
     */
    TradeRecord findByoutSn(Long memberId, String outSn);

    String exportExcel2003WithUsermodel(String format, String realPath, PageView pageView);


}
